<template>
  <div class="home">
    <son v-if="show"/>
  </div>
</template>

<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
import Son from '@/components/son.vue'
export default {
  name: 'Home',
  data () {
    return {
      show: true
    }
  },
  created () {
    setInterval(() => {
      this.show = !this.show
    }, 2000)
  },
  components: {
    Son
  }
}
</script>
